<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title"><span>基本信息</span><span class="bidinfobut colorlan layui-hide" style="float: right;margin-right: 12px">查看工程报备信息</span></div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">承揽状态</td><td class="tv" id="lantake_name" colspan="3"></td></tr>
                <tr><td class="tt">工程状态</td><td class="tv" id="state_name" colspan="3"></td></tr>
                <tr><td class="tt">工程合同类别</td><td class="tv" id="gonghelei_name" colspan="3"></td></tr>
                <tr><td class="tt">工程名称</td><td class="tv colorlan" id="name"></td><td class="tt">工程编号</td><td class="tv" id="number"></td></tr>
                <tr><td class="tt">甲方名称</td><td class="tv" id="jiaer" colspan="3"></td></tr>
                <tr><td class="tt">工程负责人</td><td class="tv" id="gofuer"></td><td class="tt">工程负责人联系电话</td><td class="tv" id="gofutel"></td></tr>
                <tr><td class="tt">所在地</td><td class="tv" id="areas"></td><td class="tt">详细地址</td><td class="tv" id="addr"></td></tr>
                <tr><td class="tt">承揽方式</td><td class="tv" id="lanshi_name"></td><td class="tt">业务归属</td><td class="tv" id="gui_unit_name"></td></tr>
                <tr><td class="tt">招标方式</td><td class="tv" id="zhaotype_name"></td><td class="tt">工程发布平台</td><td class="tv" id="kailei_name"></td></tr>
                <tr><td class="tt">资质要求</td><td class="tv" id="gongzi"></td><td class="tt">工程内容</td><td class="tv" id="gongnei"></td></tr>
                <tr><td class="tt">工程建设规模</td><td class="tv" id="guimo" colspan="3"></td></tr>
                <tr><td class="tt">中标单位</td><td class="tv" id="win_unit_name"></td><td class="tt">中标日期</td><td class="tv" id="windt"></td></tr>
                <tr><td class="tt">中标价(元)</td><td class="tv" id="winfee"></td><td class="tt">工期(天)</td><td class="tv" id="gongqi"></td></tr>
                <tr><td class="tt">劳务分包服务费率(%)</td><td class="tv" id="ratefu"></td><td class="tt">税款保证金费率(%)</td><td class="tv" id="rateshui"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>



        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_engin_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;


                $("#lantake_name").html(data.lantake_name);
                $("#state_name").html(data.state_name);
                $("#gonghelei_name").html(data.gonghelei_name);
                $("#name").text(data.name).click(function () {
                    openPage('../engin/xiang.php?id='+data.id);
                });

                $("#number").text(data.number);
                $("#jiaer").text(data.jiaer);
                $("#gofuer").text(data.gofuer);
                $("#gofutel").text(data.gofutel);
                $("#areas").text(data.areas);
                $("#addr").text(data.addr);
                $("#gongzi").text(data.gongzi);
                $("#gongnei").text(data.gongnei);
                $("#guimo").text(data.guimo);
                $("#win_unit_name").text(data.win_unit_name);
                $("#gui_unit_name").text(data.gui_unit_name);
                $("#lanshi_name").text(data.lanshi_name);
                $("#kailei_name").text(data.kailei_name);
                $("#zhaotype_name").text(data.zhaotype_name);
                $("#windt").text(data.windt);
                $("#winfee").text(parseFormatNum(data.winfee));
                $("#gongqi").text(data.gongqi);
                $("#ratefu").text(data.ratefu);
                $("#rateshui").text(data.rateshui);
                $("#explain").text(data.explain);


                if(data.bidid > 0){
                    $(".bidinfobut").removeClass('layui-hide');
                    $(".bidinfobut").click(function (e) {
                        openPage('../bid/show.php?id='+data.bidid);
                    });
                }



                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('engin', param_id);
    });


</script>
</body>
</html>




